﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ZX.TR.Library;

namespace ZX.TR.Bussiness
{
    public class BTrExpectation : BLL.Extend.BaseBussnies
    {
        public BTrExpectation() {
            this.entity = new TrExpectation();
        }
        /// <summary>
        /// 根据活动课程ID判断是否已存在
        /// </summary>
        /// <param name="TrExpectationID">活动课程ID</param>
        /// <param name="AddUser">添加用户</param>
        /// <returns>true:存在 false:不存在</returns>
        public bool IsExistsByTrActivityCourseID(Guid TrActivityCourseID,Guid AddUser)
        {
            return this.GetEntityByCondition("TrActivityCourseID='" + TrActivityCourseID + "' and AddUser='" + AddUser + "'") != null;
        }
    }
}
